﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" 
    CodeFile="HealthDiseaseForm.aspx.cs" Inherits="App_Input_HealthDiseaseForm" Title="疾病种类登记" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="4">
        <cc1:CheckRequiredAttribute Code="E0100" ControlToValidator="DiseaseName">
        <cc1:ComAbsParamsAttribute Parameter="疾病名称" />
        </cc1:CheckRequiredAttribute>
    </cc1:ComValidator>
    <table width="100%">
        <tr>
            <td style="height: 224px">
                <table class="table_border_line">
                    <tr>
                        <th align="left" colspan="6" style="text-align: left; height: 15px;">

                            <script language="javascript">
                                        (new TitleBar('SearchBar', '疾病类型')).showBar();
                            </script>

                        </th>
                    </tr>
                </table>
               <table class="table_border_line" style="background: ffffff" width="100%">
                    <tr>
                        <td style="width: 33px; height: 28px"></td>
                        <td align="left" class="" style="width: 134px; height: 28px;">保健医生编号：</td>
                        <td style="width: 25%; height: 28px">&nbsp;<asp:Label ID="LblDoctorId" runat="server"></asp:Label></td>
                        <td style="width: 130px; height: 28px;"></td>
                        <td style="width: 33%; height: 28px"></td>
                        <td align="right" style="height: 28px"></td>
                    </tr>
                     <tr>
                        <td style="width: 33px; height: 28px"></td>
                        <td align="left" class="" style="width: 134px; height: 28px;">会员编号：</td>
                        <td style="width: 25%; height: 28px">&nbsp;<asp:Label ID="LblMemberNo" runat="server"></asp:Label></td>
                        <td style="width: 130px; height: 28px;"></td>
                        <td style="width: 33%; height: 28px"></td>
                        <td align="right" style="height: 28px"></td>
                    </tr>
                    <tr>
                        <td style="width: 33px; height: 28px"></td>
                        <td align="left" class="" style="width: 134px; height: 28px;">会员姓名：</td>
                        <td style="width: 25%; height: 28px">&nbsp;<asp:Label ID="LblMemberName" runat="server"></asp:Label></td>
                        <td style="width: 130px; height: 28px;">会员性别</td>
                        <td style="width: 33%; height: 28px"><asp:Label ID="LblSex"
                            runat="server"></asp:Label></td>
                        <td align="right" style="height: 28px"></td>
                    </tr>
                    <tr>
                        <td style="width: 33px; height: 28px"></td>
                        <td align="left" class="" style="width: 134px; height: 28px;">房间编号：</td>
                        <td style="width: 25%; height: 28px">&nbsp;<asp:Label ID="LblApartmentNo" runat="server"></asp:Label></td>
                        <td style="width: 130px; height: 28px;">联系电话：</td>
                        <td style="width: 33%; height: 28px"><asp:Label ID="LblTel" runat="server"></asp:Label></td>
                        <td align="right" style="height: 28px"></td>
                    </tr>
                    <tr>
                        <td style="width: 33px; height: 28px"></td>
                        <td align="left" class="" style="width: 134px; height: 28px;">疾病名称：</td>
                        <td style="width: 25%; height: 28px">&nbsp;
                            <asp:DropDownList ID="DiseaseName" runat="server" DataTextField="Content" DataValueField="DictNo">
                            </asp:DropDownList></td>
                        <td style="width: 130px; height: 28px;"></td>
                        <td style="width: 33%; height: 28px"></td>
                        <td align="right" style="height: 28px"></td>
                    </tr>
                    
                   <tr>
                        <td style="width: 33px; height: 100px">
                        </td>
                        <td  style="width: 134px; height: 100px">
                            所患疾病：</td>
                        <td colspan="3" style="height: 100px">
                             <asp:GridView ID="GridView1" runat="server"  AutoGenerateColumns="False" OnPageIndexChanging="GridView1_PageIndexChanging"
                             AllowPaging="True" CssClass="GridView_table" DataKeyNames="RowId"  OnRowEditing="GridView1_OnRowEditing" OnRowDeleting="GridView1_OnRowDeleting"
                            BorderStyle="Solid" PageSize="5">
                            <Columns>
                                <asp:BoundField HeaderText="疾病名称" DataField="Disease">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                </asp:BoundField>
                                <asp:CommandField ButtonType="Image" EditImageUrl="~/images/edit.jpg" HeaderText="编辑"
                                    ShowEditButton="True" EditText="编辑">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                </asp:CommandField>
                                <asp:TemplateField ShowHeader="False" HeaderText="删除">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                        ImageUrl="~/images/delete.jpg" OnClientClick="return confirm('确定删除吗？')" Text="" />
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" />
                                </asp:TemplateField>
                               
                            <asp:TemplateField Visible="False">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RowId") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="RowId" runat="server" Text='<%# Bind("RowId") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                                <asp:BoundField />
                               
                            </Columns>
                            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                        </asp:GridView>
                        </td>
                        <td align="right" style="height: 100px">
                        </td>
                    </tr>

                    </table>
                </td>
                </tr>
                 <tr>
            <td align="center" style="height: 92px" valign="bottom">
                <asp:Button ID="btnUpdate" runat="server" Text="  登 记  " CssClass="button" OnClick="btnUpdate_Click"
                    Height="22px" OnClientClick="return confirm('是否登入数据？')" Width="71px"/>&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btn_new" runat="server" CssClass="Button" Text="取 消" Width="73px" OnClick="btn_new_Click" />&nbsp;
                <asp:Button ID="btnclose" runat="server" Text="  关 闭  " CssClass="button" OnClientClick="javascript:window.close();"
                    Height="22px" Width="71px" />
            </td>
        </tr>
    </table>
</asp:Content>